package demo01;

class Phone {
    public void sendMessage() {
        System.out.println("发个短信");
    }

    public void call() {
        System.out.println("打电话");
    }

    public void useWechat() {
        System.out.println("玩游戏");
    }
}

class newPhone extends Phone {
    public void useWechat() {
        super.useWechat();
        System.out.println("用视频聊天");
        System.out.println("看青年大学习");
    }
}

public class ExtendDemo06 {
    public static void main(String[] args) {
        newPhone np = new newPhone();
        np.sendMessage();
        np.call();
        np.useWechat();
    }
}
